﻿    <% if @reverse_pagination %>
      <% if total_pages > @page %>
        <div class="previous">
          <%= link_to( "<< Previous", params.merge({ :page => @page + 1 }) ) %>
        </div>
      <% end %>
      <% if @page > 1 %>
        <div class="next">
          <%= link_to( "Next >>", params.merge({ :page => @page - 1 }) ) %>
        </div>
      <% end %>
    <% else %>
      <% if @page > 1 %>
        <div class="previous">
          <%= link_to( "<< Previous", params.merge({ :page => @page - 1 }) ) %>
        </div>
      <% end %>
      <% if total_pages > @page %>
        <div class="next">
          <%= link_to( "Next >>", params.merge({ :page => @page + 1 }) ) %>
        </div>
      <% end %>
    <% end %>
